package com.mszlu.blog.enums;

/**
 * 是否枚举
 * @author liwenyi
 * @date 2018/12/3 16:37
 * @desc
 */
public enum YES_NO implements IEnumNameValue {
    YES(1, "是"), NO(0, "否");
    private Integer value;
    private String name;

    private YES_NO(Integer value, String name) {
        this.name = name;
        this.value = value;
    }

    public Integer getValue() {
        return this.value;
    }

    public String getName() {
        return this.name;
    }
}